﻿/// <reference path="jquery-1.4.4-vsdoc.js" />
(function ($) {

    //Attach this new method to jQuery
    $.fn.extend({



        

        addDiv: function () {
            var div = $('<div></div>');
            div.html('<h1>Test from addDiv</h1>');

            $(this).append(div);
            log();


            function log() {
                console.log('message added');
            }

        }
    });

    //pass jQuery to the function, 
    //So that we will able to use any valid Javascript variable name 
    //to replace "$" SIGN. But, we'll stick to $ (I like dollar sign: ) )
})(jQuery);